package com.sanery.ui.controller;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.sanery.entity.Shop;
import com.sanery.service.ShopService;

@Controller
public class ShopController {

	@Resource(name = "shopService")
	private ShopService service = null;

	@RequestMapping("/getShops")
	@ResponseBody
	public List<Shop> getShops() {
		List<Shop> list = service.getShops();
		return list;
	}

}
